package com.example.mapper;

import com.example.domain.Admin;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
* @author Administrator
* @description 针对表【admin】的数据库操作Mapper
* @createDate 2025-06-07 14:02:06
* @Entity com.example.domain.Admin
*/
public interface AdminMapper {

    int deleteByPrimaryKey(Integer id);

    int insert(Admin record);

    int insertSelective(Admin record);

    Admin selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(Admin record);

    int updateByPrimaryKey(Admin record);

    List<Admin> selectAll(Admin admin);

    @Select("select * from `admin` where username=#{username}")
    Admin selectByUsername(String username);
}
